package com.probiz.estore.customer.service;

import com.probiz.estore.common.model.customer.ReviewEligibility;
import com.probiz.estore.core.service.GenericManager;

/**
 * Manager interface for ReviewEligibility, responsible for business processing, and communicate between web and persistence layer.
 *
 */
public interface ReviewEligibilityManager extends GenericManager<ReviewEligibility> {
	/**
	 * 为客户添加对商品评论的资质
	 * @param customerId 客户id
	 * @param productId 商品id
	 */
	public void addEligibility(Integer customerId,Integer productId);
	/**
	 * 获得客户对商品评论的资质标识
	 * @param customerId
	 * @param productId
	 * @return  ReviewEligibility.RESULT_UNAVAILABLE,RESULT_AVAILABLE,RESULT_OVERCOUNT,RESULT_OVERTIME
	 */
	public Short getEligibility(Integer customerId,Integer productId);

}
